package sstatic;

public class TestDriver {
    public static void main(String[] args) {
        // 通过类名访问静态的属性和方法
        Student.stuName = "zhangsan";
        Student.doExamming();
        System.out.println("-----------------");
        Student student = new Student();
        student.doStuding();
        System.out.println("-----------------");
        Student student1 = new Student();
        student1.doStuding();
    }

    /**
     * final关键字
     */
    public static void test01() {
        // 基本类型
        final int i = 0;
        //i =1;
        // 对于对象类型 -- 地址的值不能变
        final Student student = new Student();
        student.setStuName("zhangsan");
        student.setStuName("lisi");
        //student = new Student();
    }
}
